<!DOCTYPE html
  PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
  "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">

<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
      <title><%= h("humanTranslated: English / Japanese Language Study System") %></title>
      <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
      <meta name="resource-type" content="document">
      <meta name="author" content="Sam Morrison">
      <meta name="copyright" content="Copyright (c) 2007 Sam Morrison">
      <meta name="revisit-after" content="1 days">
      <meta name="rating" content="General">
      <meta name="keywords" content="Japanese, 日本語, English, 英語, Japan, study, language, dynamic japanese word parsing, conversational japanese, study tool">
      <meta name="description" content="Conversational Japanese Study Website" />
      <%= stylesheet_link_tag "main", :media => "all" %>
      <style type="text/css"></style>
    </head>
    <body>
        <div id="studylist">
            <div id="header">
                <div id="headerlinks">
                    <div id="title"><%= link_to "humanTranslated", {# link_to options
                                        :controller => 'main'},
                                        {:class => 'sitename'} %></div>
                    <div class="navigation">
                        <ul>
                            <li><a href="/story/" <%= if @current == "story" then "class='current'" end %>>stories</a> | 
                                <a href="/word/" <%= if @current == "word" then "class='current'" end %>>words</a> (<a href="/word/excluded/" <%= if @current == "excluded" then "class='current'" end %>>excluded<a/>) | 
                                <a href="/category/" <%= if @current == "category" then "class='current'" end %>>categories</a></li>
                            <li>Authored by other users: <a href="/story/authored_by_other_users/" <%= if @current == "authored_by_other_users" then "class='current'" end %>>stories</a> | 
                            <a href="/word/from_other_users_stories/" <%= if @current == "from_other_users_stories" then "class='current'" end %>>words</a></li>
                        </ul>
                    </div>
                    <div id="userlinks">
                        <% if session[:user].nil? then  %>
                                <a href="/user/login">Login</a> |
                                <a href="/user/signup">Signup</a>
                        <% else %>
                            Welcome back <%= session[:user].first_name %>: 
                            <a href="/user/edit/<%= session[:user].id %>" <%= if @current == "user" then "class='current'" end %>>Account</a> | 
                            <a href="/sharing/" <%= if @current == "sharing" then "class='current'" end %>>Sharing</a> |
                            <a href="/user/logout">Logout</a>
                        <% end %>
                    </div>
                </div>
                
            </div>
            <div id="mainwrap">
                <div id="pageheader">
                        <%= @page_title || "Study List" %>
                </div>
                <% if flash[:notice] -%>
                    <div id="notice"><%= flash[:notice]%></div>
                <% end -%>
                <div id="main">
                    <%= yield :layout %>
                </div>
                
            </div>
            <div id="footer">
                (c) Copyright 2007 <a href="http://www.sammorrison.com">Sam Morrison.</a> | <a href="http://groups.google.com/group/humantranslated">Comments, questions, bugs?</a>.
            </div>
        </div>    
        <script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
        </script>
        <script type="text/javascript">
        _uacct = "UA-32256-16";
        urchinTracker();
        </script>
    </body>
</html>